package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpActShaketicketHome implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 活动名称
     *
     * @mbg.generated
     */
    private String actName;

    /**
     * 启用状态（0：停用；1：激活）
     *
     * @mbg.generated
     */
    private String activeFlag;

    /**
     * 开始时间
     *
     * @mbg.generated
     */
    private Date beginTime;

    /**
     * 结束时间
     *
     * @mbg.generated
     */
    private Date endTime;

    /**
     * 兑奖截止日期
     *
     * @mbg.generated
     */
    private Date deadlinetime;

    /**
     * 模版简称
     *
     * @mbg.generated
     */
    private String template;

    /**
     * 抽奖次数
     *
     * @mbg.generated
     */
    private Integer count;

    /**
     * 每日抽奖次数
     *
     * @mbg.generated
     */
    private Integer numPerDay;

    /**
     * 活动链接
     *
     * @mbg.generated
     */
    private String hdurl;

    /**
     * 短链接
     *
     * @mbg.generated
     */
    private String shortUrl;

    /**
     * 是否关注可参加 0否1是
     *
     * @mbg.generated
     */
    private String foucsUserCanJoin;

    /**
     * 是否绑定手机可参加 0否1是
     *
     * @mbg.generated
     */
    private String bindingMobileCanJoin;

    /**
     * 是否中奖可参与 0：中奖可继续参与 1:中奖不可参与
     *
     * @mbg.generated
     */
    private String winCanJoin;

    /**
     * 公众号原始id
     *
     * @mbg.generated
     */
    private String jwid;

    /**
     * 所属项目编码
     *
     * @mbg.generated
     */
    private String projectCode;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createBy;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 活动规则
     *
     * @mbg.generated
     */
    private String detail;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getActName() {
        return actName;
    }

    public void setActName(String actName) {
        this.actName = actName;
    }

    public String getActiveFlag() {
        return activeFlag;
    }

    public void setActiveFlag(String activeFlag) {
        this.activeFlag = activeFlag;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getDeadlinetime() {
        return deadlinetime;
    }

    public void setDeadlinetime(Date deadlinetime) {
        this.deadlinetime = deadlinetime;
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getNumPerDay() {
        return numPerDay;
    }

    public void setNumPerDay(Integer numPerDay) {
        this.numPerDay = numPerDay;
    }

    public String getHdurl() {
        return hdurl;
    }

    public void setHdurl(String hdurl) {
        this.hdurl = hdurl;
    }

    public String getShortUrl() {
        return shortUrl;
    }

    public void setShortUrl(String shortUrl) {
        this.shortUrl = shortUrl;
    }

    public String getFoucsUserCanJoin() {
        return foucsUserCanJoin;
    }

    public void setFoucsUserCanJoin(String foucsUserCanJoin) {
        this.foucsUserCanJoin = foucsUserCanJoin;
    }

    public String getBindingMobileCanJoin() {
        return bindingMobileCanJoin;
    }

    public void setBindingMobileCanJoin(String bindingMobileCanJoin) {
        this.bindingMobileCanJoin = bindingMobileCanJoin;
    }

    public String getWinCanJoin() {
        return winCanJoin;
    }

    public void setWinCanJoin(String winCanJoin) {
        this.winCanJoin = winCanJoin;
    }

    public String getJwid() {
        return jwid;
    }

    public void setJwid(String jwid) {
        this.jwid = jwid;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", actName=").append(actName);
        sb.append(", activeFlag=").append(activeFlag);
        sb.append(", beginTime=").append(beginTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", deadlinetime=").append(deadlinetime);
        sb.append(", template=").append(template);
        sb.append(", count=").append(count);
        sb.append(", numPerDay=").append(numPerDay);
        sb.append(", hdurl=").append(hdurl);
        sb.append(", shortUrl=").append(shortUrl);
        sb.append(", foucsUserCanJoin=").append(foucsUserCanJoin);
        sb.append(", bindingMobileCanJoin=").append(bindingMobileCanJoin);
        sb.append(", winCanJoin=").append(winCanJoin);
        sb.append(", jwid=").append(jwid);
        sb.append(", projectCode=").append(projectCode);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", detail=").append(detail);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpActShaketicketHome other = (WechatMpActShaketicketHome) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getActName() == null ? other.getActName() == null : this.getActName().equals(other.getActName()))
            && (this.getActiveFlag() == null ? other.getActiveFlag() == null : this.getActiveFlag().equals(other.getActiveFlag()))
            && (this.getBeginTime() == null ? other.getBeginTime() == null : this.getBeginTime().equals(other.getBeginTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getDeadlinetime() == null ? other.getDeadlinetime() == null : this.getDeadlinetime().equals(other.getDeadlinetime()))
            && (this.getTemplate() == null ? other.getTemplate() == null : this.getTemplate().equals(other.getTemplate()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
            && (this.getNumPerDay() == null ? other.getNumPerDay() == null : this.getNumPerDay().equals(other.getNumPerDay()))
            && (this.getHdurl() == null ? other.getHdurl() == null : this.getHdurl().equals(other.getHdurl()))
            && (this.getShortUrl() == null ? other.getShortUrl() == null : this.getShortUrl().equals(other.getShortUrl()))
            && (this.getFoucsUserCanJoin() == null ? other.getFoucsUserCanJoin() == null : this.getFoucsUserCanJoin().equals(other.getFoucsUserCanJoin()))
            && (this.getBindingMobileCanJoin() == null ? other.getBindingMobileCanJoin() == null : this.getBindingMobileCanJoin().equals(other.getBindingMobileCanJoin()))
            && (this.getWinCanJoin() == null ? other.getWinCanJoin() == null : this.getWinCanJoin().equals(other.getWinCanJoin()))
            && (this.getJwid() == null ? other.getJwid() == null : this.getJwid().equals(other.getJwid()))
            && (this.getProjectCode() == null ? other.getProjectCode() == null : this.getProjectCode().equals(other.getProjectCode()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getActName() == null) ? 0 : getActName().hashCode());
        result = prime * result + ((getActiveFlag() == null) ? 0 : getActiveFlag().hashCode());
        result = prime * result + ((getBeginTime() == null) ? 0 : getBeginTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getDeadlinetime() == null) ? 0 : getDeadlinetime().hashCode());
        result = prime * result + ((getTemplate() == null) ? 0 : getTemplate().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getNumPerDay() == null) ? 0 : getNumPerDay().hashCode());
        result = prime * result + ((getHdurl() == null) ? 0 : getHdurl().hashCode());
        result = prime * result + ((getShortUrl() == null) ? 0 : getShortUrl().hashCode());
        result = prime * result + ((getFoucsUserCanJoin() == null) ? 0 : getFoucsUserCanJoin().hashCode());
        result = prime * result + ((getBindingMobileCanJoin() == null) ? 0 : getBindingMobileCanJoin().hashCode());
        result = prime * result + ((getWinCanJoin() == null) ? 0 : getWinCanJoin().hashCode());
        result = prime * result + ((getJwid() == null) ? 0 : getJwid().hashCode());
        result = prime * result + ((getProjectCode() == null) ? 0 : getProjectCode().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());
        return result;
    }
}